<!DOCTYPE html >
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width">
<title>{$tpshop_config['shop_info_store_title']}</title>
<meta http-equiv="keywords" content="{$tpshop_config['shop_info_store_keyword']}" />
<meta name="description" content="{$tpshop_config['shop_info_store_desc']}" />
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=0"/>
<link rel="stylesheet" type="text/css" href="__STATIC__/css/public.css"/>
<link rel="stylesheet" type="text/css" href="__STATIC__/css/index.css"/>
<script type="text/javascript" src="__STATIC__/js/jquery.js"></script>
<script type="text/javascript" src="__STATIC__/js/TouchSlide.1.1.js"></script>
<script type="text/javascript" src="__STATIC__/js/jquery.json.js"></script>
<script type="text/javascript" src="__STATIC__/js/touchslider.dev.js"></script>
<script type="text/javascript" src="__STATIC__/js/layer.js" ></script>
<script src="__PUBLIC__/js/global.js"></script>
<script src="__PUBLIC__/js/mobile_common.js"></script>

<link rel="stylesheet" href="__STATIC__/css/font-awesome.min.css">
<link rel="stylesheet" href="__STATIC__/css/icomoon.css">
</head>
<body>
<div id="page" class="showpage">
<div>

<div class="tab_nav tab_nav_none">
    <div class="header">
      <div class="h-mid">首 頁</div>
    </div>
</div>

<div id="fake-search" class="index_search">
  <div class="index_search_mid">
  <span><img src="__STATIC__/images/xin/icosousuo.png"></span>
    <input  type="text" id="search_text" class="search_text" placeholder="搜索商品"/>
	<i><a href="tel:{$tpshop_config['shop_info_phone']}"><em class="icon-user_service"></em>客服</a></i>
  </div>
</div>

<div id="scrollimg" class="scrollimg">
  <div class="bd">
	 <ul>
	 	<adv pid ="401" limit="5" item="v">
         	<if condition="$v.ad_link_id neq ''">
	    		<li><a href="{:U('Mobile/Activity/activityList/',array('activity_id'=>$v[ad_link_id]))}" <if condition="$v['target'] eq 1">target="_blank"</if> ><img src="{$v[ad_code]}" title="{$v[title]}"width="100%" style="{$v[style]}"/></a></li>
            
            <else/>
	    	<li><a href="{$v.ad_link}" <if condition="$v['target'] eq 1">target="_blank"</if> ><img src="{$v[ad_code]}" title="{$v[title]}"width="100%" style="{$v[style]}"/></a></li>
            </if>
     	</adv>                        
     </ul>
  </div>
  
  <div class="hd">
	<ul></ul>
  </div>
</div>
<script type="text/javascript">
	TouchSlide({ 
		slideCell:"#scrollimg",
		titCell:".hd ul", //開啟自動分頁 autoPage:true ，此時設置 titCell 為導航元素包裹層
		mainCell:".bd ul", 
		effect:"leftLoop", 
		autoPage:true,//自動分頁
		autoPlay:true //自動播放
	});
</script> 

<div class="entry-list clearfix" style="display: none;">
	<nav>
		<ul>
			<li style="display: none;">
				<a href="{:U('Coupon/index')}">
					<img alt="優惠券" src="__STATIC__/images/icon1.jpg" />
					<span>優惠券</span>
				</a>
			</li>		 
			<li>
				<a href="{:U('Activity/group_list')}">
					<img alt="團購" src="__STATIC__/images/icon2.jpg" />
					<span>團購</span>
				</a>
			</li>
				 
			<li>
				<a href="{:U('Goods/promotionList')}">
					<img alt="折扣商品" src="__STATIC__/images/icon3.jpg" />
					<span>折扣商品</span>
				</a>
			</li>	 
			<li>
				<a href="{:U('Goods/brandList')}">
					<img alt="品牌館" src="__STATIC__/images/icon4.jpg" />
					<span>品牌館</span>
				</a>
			</li>	 
			<li>
				<a href="{:U('Article/articleList')}" >
					<img alt="促銷活動" src="__STATIC__/images/icon5.jpg" />
					<span>促銷活動</span>
				</a>
			</li>
		</ul>
	</nav>
</div>


<div class="entrysales-list clearfix" style="margin-top:10px;">
	<!-- <div class="i_title"><b>NEW FASHION</b>專題新品<i class="fa fa-angle-right"></i></div>
	<ul id="i_mobile_sales">
		<adv pid ="402" limit="4" item="v">
			<li><a href="{$v.ad_link}" <if condition="$v['target'] eq 1">target="_blank"</if> ><img src="{$v[ad_code]}" title="{$v[title]}" style="{$v[style]}"/></a></li>
		</adv>  
		<div class="clear" ></div>
	</ul>  -->
	<div class="i_title"><b>recommendation</b>精品推薦<i class="fa fa-angle-right"></i></div>
	
	
	<div class="floor_body2" >
	  <div id="J_ItemList">
		<ul class="product single_item info">
		</ul>
		<a href="javascript:;" class="get_more" style="text-align:center; display:block;"> 
		<img src='__STATIC__/images/category/loader.gif' width="12" height="12"> </a> 
	  </div>
	  <div id="getmore" style="font-size:.24rem;text-align: center;color:#888;padding:.25rem .24rem 1.4rem;">
		<a href="javascript:void(0)" onClick="getGoodsList()">點擊加載更多</a>
	  </div>
	</div>
	
</div>

 
   
<script type="text/javascript">
var url = "index.php?m=Mobile&c=Index&a=ajaxGetMore";
$(function(){
	//$('#J_ItemList').more({'address': url});
	getGoodsList();
});

var page = 1;
function getGoodsList(){
	$('.get_more').show();
	$.ajax({
		type : "get",
		url:"/index.php?m=Mobile&c=Index&a=ajaxGetMore&p="+page,
		dataType:'html',
		success: function(data)
		{
			if(data){
				$("#J_ItemList>ul").append(data);
				page++;
				$('.get_more').hide();
			}else{
				$('.get_more').hide();
				$('#getmore').remove();
			}
		}
	}); 
}
</script> 

<script>
function goTop(){
	$('html,body').animate({'scrollTop':0},600);
}
</script>
<a href="javascript:goTop();" class="gotop"><img src="__STATIC__/images/topup.png"></a> 
</div>
<div id="J_demo" style="display:none"></div>
 <div id="search_hide" class="search_hide">
 
 
<div class="tab_nav">
    <div class="header">
      <div class="h-mid">搜索</div>
	<a href="{:U('Index/index')}" class="header_r closedd"><i class="fa fa-close"></i></a>
    </div>
</div>


 <div id="mallSearch" class="search_mid">
        <div id="search_tips" style="display:none;"></div>
          <ul class="search-type">
          	<li  class="cur"  num="0">寶貝</li>
          	<!--<li  num="1">店鋪</li>-->
          </ul>	
          <div class="searchdotm"> 
          <form class="set_ip"name="sourch_form" id="sourch_form" method="post" action="{:U('Goods/search')}">
              <div class="mallSearch-input">
                <div id="s-combobox-135">
                    <input class="s-combobox-input" name="q" id="q"  placeholder="請輸入關鍵詞"  type="text" value="<?php echo I('q'); ?>" />
                </div>                                                
                <input type="button" value="" class="button"  onclick="if($.trim($('#q').val()) != '') $('#sourch_form').submit();" />
              </div>
          </form>
         </div> 
        </div>
 		<!--
		<div class="search_body">
		<div class="search_box">
		<form action="search.php" method="post" id="searchForm" name="searchForm">
		<div>
		<select id='search_type' name="search_type" style="width:15%;">
			<option value='search'>寶貝</option>
			<option value='stores'>店鋪</option>
		</select>
		     <input class="text" type="search" name="keywords" id="keywordBox" autofocus>
		     <button type="submit" value="搜 索" ></button>
		</div>
		</form>
	    </div>
		</div>
       -->              
    	<section class="mix_recently_search"><h3>熱門搜索</h3>
	     <ul>
            <foreach name="tpshop_config.hot_keywords" item="wd" key="k">
               <li><a href="{:U('Goods/search',array('q'=>$wd))}" <if condition="$k eq 0">class="ht"</if>>{$wd}</a></li>
            </foreach>         
	      </ul>
        </section>
    </div>
                                             
</div>
<include file="Public/footer_nav"/>
 
<script type="text/javascript">
$(function() {
    $('#search_text').click(function(){
        $(".showpage").children('div').hide();
        $("#search_hide").css('position','fixed').css('top','0px').css('width','100%').css('z-index','999').show();
    })
    $('#get_search_box').click(function(){
        $(".showpage").children('div').hide();
        $("#search_hide").css('position','fixed').css('top','0px').css('width','100%').css('z-index','999').show();
    })
    $("#search_hide .closedd").click(function(){
        $(".showpage").children('div').show();
        $("#search_hide").hide();
    })
});
</script>
<script>
$('.search-type li').click(function() {
    $(this).addClass('cur').siblings().removeClass('cur');
    $('#searchtype').val($(this).attr('num'));
});
$('#searchtype').val($(this).attr('0'));
</script>
<script src="__PUBLIC__/js/jqueryUrlGet.js"></script><!--獲取get參數插件-->
<script> set_first_leader(); //設置推薦人 </script>
</body>
</html>